from django.urls import path,re_path
import apps.user.views as views
app_name='user'
urlpatterns = [
    re_path(r'^register$',views.RegisterView.as_view(),name='register'),
    re_path(r'^active/(?P<token>.*)$',views.ActiveView.as_view(),name='active'),
    re_path(r'^login$',views.LoginView.as_view(),name='login'),
    re_path(r'^logout$',views.LogoutView.as_view(),name='logout'),
    #re_path(r'^user$', login_required(views.UserInfoView.as_view()), name='user'),
    #re_path(r'^order$', login_required(views.OrderView.as_view()), name='order'),
    #re_path(r'^address$', login_required(views.AddressView.as_view()), name='address'),
    re_path(r'^user$', views.UserInfoView.as_view(), name='user'),
    re_path(r'^order/(?P<page_num>\d+)$', views.OrderView.as_view(), name='order'),
    re_path(r'^address$', views.AddressView.as_view(), name='address'),
]